package cn.wolfcode.crm.service;


import cn.wolfcode.crm.domain.Role;
import cn.wolfcode.crm.qo.PageResult;
import cn.wolfcode.crm.qo.QueryObject;

import java.util.List;

public interface IRoleService {
    // 保存角色的同时 同时保存角色的相应权限和菜单
    void saveOrUpdate(Role entity, Long[] ids);
    void delete(Long id);
    Role get(Long id);
    List<Role> selectAll();

    PageResult queryForList(QueryObject qo);

    List<Role> selectSnByEmployeeId(Long id);

    Long[] selectPermissionById(Long id);


    Long[] selectMenuByRoleId(Long id);
}
